/**
 * Created by ibm on 2015/8/29.
 */
if(dev) {
    console.info('加载', 'favorites/template.js');
}
var source = '<%for( i = 0; i < dataArray.length; i++) {%>' +
                '<div class="thesisItem">' +
                '<div class="thesisInfo">' +
                '<p class="title">' +
                '<a href="javascript:void(0);" onclick="detail(<%=dataArray[i].paper.id%>);"><%=dataArray[i].paper.title%></a>' +
                '</p>' +
                '<p class="author">' +
                '<%if(dataArray[i].paper.authors!=null){%>'+
                    '<%for( j=0;j<dataArray[i].paper.authors.length;j++){%>'+
                        '<span><a href="javascript:void(0);" onclick="authorsPapers(\'<%=dataArray[i].paper.authors[j]%>\');"><%=dataArray[i].paper.authors[j]%></a></span>' +
                            '<%if(j!=(dataArray[i].paper.authors.length-1)){%>'+
                                '<em>·</em>'+
                            '<%}%>'+
                    '<%}%>'+
                '<%}%>'+
                '</p>' +
                '</div>' +
                '<span class="time" id="time<%=dataArray[i].id%>"><script type="text/javascript">$.PIF_dateDiffFormat.getDateDiff("<%=dataArray[i].updateTime%>","time<%=dataArray[i].id%>")</script></span>' +
                '</div>' +
            '<%}%>';